<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * 团购信息从表
 * @ author: zuorenci
 * @ email: 904725327@qq.com
 * @ date: 2017/10/24 21:01
 */
class TmpFile extends Model
{

    protected $table = 'tmp_file';

    public $timestamps = false;

    protected $fillable = [
        'id', // int(10) unsigned NOT NULL AUTO_INCREMENT,
        'file_path', // varchar(255) COLLATE utf8_bin NOT NULL COMMENT '文件的全路径',
        'operate_type', // tinyint(1) NOT NULL COMMENT '操作类型，1aliOSS，2应用服务器文件',
        'created_at', // int(11) NOT NULL,
    ];
    //与活动表关联
    public function active()
    {
        return $this->hasOne('App\\Models\\Active', 'tuan_id', 'tuan_id');
    }
}
